<!-- $Id: order_info.htm 8439 2007-04-30 04:27:00Z scottye $ -->

{include file="pageheader.htm"}

<script src="js/topbar.js"></script>
<script src="js/utils.js"></script>
<script src="js/listtable.js"></script>
<script src="js/selectzone.js"></script>
 

<div class="list-div" style="margin-bottom: 5px">
<table width="100%" cellpadding="3" cellspacing="1">  

  <tr>
    <th colspan="4">{$lang.base_info}</th>
  </tr>

  <tr>
    <td width="15%"><div align="right"><strong>{$lang.label_cycledorder_sn}</strong></div></td>

    <td width="34%">{$cycledorder.repeat_id}</td>

    <td width="15%"><div align="right"><strong>{$lang.label_cycledorder_date}</strong></div></td>
    <td><span id="idOrderStatus" >{$order.date_begin} [ {$order.date_end} ]</span></td>

  </tr>

  <tr>
    <td><div align="right"><strong>{$lang.label_user_name}</strong></div></td>
    <td>{$order.customer_lname } &nbsp;{ $order.customer_fname} </td>
    <td><div align="right"><strong>{$lang.label_cycledoder_lastcheck}</strong></div></td>
    <td>{$cycledorder.date_lastchecked}</td>
  </tr>

  <tr>
    <td><div align="right"><strong>{$lang.label_payment}</strong></div></td>
    <td > {$order.payment_method} <br />{ $order.payment_desc} </td>

    <td><div align="right"><strong>{$lang.delivery_time}</strong></div></td>
    <td><font color="#FF0000">{$order.delivery_time}</font></td>
  </tr>

  <tr>
    <td><div align="right"><strong>{$lang.label_shipping}</strong></div></td>
    <td >
		{$order.country}&nbsp;&nbsp;{$order.prefecture}&nbsp;&nbsp;{$order.city} <br />
        {$order.address}&nbsp;&nbsp;[{$order.postcode}]
	</td>     

	<td> <div align="right"><strong>{$lang.label_email}</storng></div> </td>
	<td> {$order.customers_mail}</td>
  </tr> 
  
  {if $order.order_notes }
  <tr>
    <td><div align="right"><strong>{$lang.label_order_notes}</strong></div></td>
    <td colspan=3 >{$order.order_notes}</td>
  </tr>
  {/if}	  

</table>
</div>

<!-- list of ordered goods begin -->

<div class="list-div" style="margin-bottom: 5px">
<table width="100%" cellpadding="3" cellspacing="1">
  <tr>
    <th colspan="9" scope="col">{$lang.goods_info}  </th>
    </tr>
  <tr>    
    <td scope="col"><div align="left"><strong>{$lang.goods_sn}</strong></div></td>    
    <td scope="col"><div align="left"><strong>{$lang.goods_name}</strong></div></td>    
    <td scope="col"><div align="left"><strong>{$lang.goods_price}</strong></div>      <div align="left"></div></td>
    <td scope="col"><div align="left"><strong>{$lang.goods_number}</strong></div></td>
    <td scope="col"><div align="left"><strong>{$lang.goods_attr}</strong></div></td>    
    <td scope="col"><div align="left"><strong>{$lang.subtotal}</strong></div></td>    
  </tr>

 

  {foreach from=$order.products item=goods}
  <tr>
     
    <td><div align="left">{$goods.products_id}</div></td>
    <td><div align="left">{$goods.products_name}</div></td>
    <td><div align="left">{$goods.products_price}</div></td>
    <td><div align="left">{$goods.products_amount}</div></td>
    <td><div align="left">{$goods.products_attr}    </div></td>    
    <td><div align="left">{$goods.products_subtotal}</div></td>
  </tr>
  {/foreach}

  <tr>  
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>    
    <td>&nbsp;</td>    
    <td><div align="left"><strong>{$lang.label_total}</strong></div></td>
    <td><div align="left">{$order.subtotal}</div></td>
    
  </tr>
</table>
</div>

<div class="list-div" style="margin-bottom: 5px">
<table width="100%" cellpadding="3" cellspacing="1">
  <tr>
    <th>{$lang.fee_info}</th>
  </tr>

  <tr>
    <td><div align="right">
	{$lang.label_total} &nbsp;{$order.subtotal} &nbsp;
		
	 + {$lang.label_shipping_fee}<strong>&nbsp; {$order.formated_shipping_fee|default:"0"}&nbsp;</strong>
	 + {$lang.label_HandlingCharge}<strong>&nbsp;{$order.HandlingCharge|default:"0"}&nbsp;</strong>
	 + {$lang.label_ImportDuty}<strong>&nbsp;{$order.ImportDuty|default:"0"}&nbsp;</strong>
	 + {$lang.label_IndentPrice}<strong>&nbsp;{$order.IndentPrice|default:"0"}&nbsp;</strong>
	
	</div></td>
  <tr>

    <td><div align="right"> = {$lang.label_order_total}<strong>&nbsp;{$order.order_total|default:"0"}</strong></div></td>
  </tr>

</table>
</div> 


<div class="list-div" style="margin-bottom: 5px">
<table cellpadding="3" cellspacing="1">

<tr>
    <th colspan=2>{$lang.cycled_param}</th>
  </tr>

<tr>
	<td colspan=2>  
	<form name="theForm" method="post" action="?page=cycledorders&action=save&id={$cycledorder.repeat_id}" target="_self">	
	
	    <!-- time -->
    {$lang.order_mintime} <input type="text" id="idmintime" name="mintime" size="15" value="{$order.date_begin}" onclick="return showCalendar('idmintime', '%Y-%m-%d', false, false, 'idmintime');" /> 

    {$lang.order_maxtime} <input type="text" id="idmaxtime" name="maxtime" size="15" value="{$order.date_end}" onclick="return showCalendar('idmaxtime', '%Y-%m-%d', false, false, 'idmaxtime');" /> 

    <!-- interval month -->
    <select name="interval_months"> {html_options options=$lang.interval_months_option selected=$cycledorder.interval_months}</select>       
        
        <input type="submit" name="Submit" value="modify" />  
	  </form>    

	  &nbsp;&nbsp;<a href="?page=cycledorders&action=reset_lastcheckdate&id={$cycledorder.repeat_id}" ><input type="button" value="{$lang.reset_lastcheckdate}" />&nbsp;&nbsp;
	  </td>
  </tr>


  <tr>
  <td width=20% > {$lang.label_nexttime}</td>
  <td>{$order.nextOccurDate}</td>
  </tr>


</table>
</div>


{if $output_msg neq ''}

<div class="list-div" style="margin-bottom: 5px">
  <table cellpadding="3" cellspacing="1">
  <tr>  
  <td>{$output_msg}</td>
  </tr>
</table>
</div>


{/if}



{include file="pagefooter.htm"}